function pull(arr,...args){
  let res = []
  for(let i = 0;i<arr.length;i++){
    if(args.includes(arr[i])){
      res.push(arr[i])
      arr.splice(i,1)
      i--
    }
  }
  console.log(arr)
  return res
}
function pullAll(arr,args){
  return pull(arr,...args)
}